<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::common::UniformGenerator&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1common_1_1_uniform_generator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-types">Private 类型</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1common_1_1_uniform_generator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::common::UniformGenerator&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html" title="UniformGenerator class generates a random number from range [min, max] at each run picked according t...">UniformGenerator</a> class generates a random number from range [min, max] at each run picked according to a uniform distribution i.e eaach number within [min, max] has almost the same probability of being drawn.  
 <a href="classpcl_1_1common_1_1_uniform_generator.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="random_8h_source.html">random.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0c3dafe58c4ad4bab8458347f6f71ebf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a0c3dafe58c4ad4bab8458347f6f71ebf">UniformGenerator</a> (T min=0, T max=1, pcl::uint32_t seed=-1)</td></tr>
<tr class="separator:a0c3dafe58c4ad4bab8458347f6f71ebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26c953dcbe05a16f55f8f5d7979c1bd9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a26c953dcbe05a16f55f8f5d7979c1bd9">UniformGenerator</a> (const <a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a> &amp;parameters)</td></tr>
<tr class="separator:a26c953dcbe05a16f55f8f5d7979c1bd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aca98cd032cc02d5f180349b1bafa49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a7aca98cd032cc02d5f180349b1bafa49">setSeed</a> (pcl::uint32_t seed)</td></tr>
<tr class="separator:a7aca98cd032cc02d5f180349b1bafa49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3963a7ac25388e77cdfab6641cc46b9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a3963a7ac25388e77cdfab6641cc46b9c">setParameters</a> (T min, T max, pcl::uint32_t seed=-1)</td></tr>
<tr class="separator:a3963a7ac25388e77cdfab6641cc46b9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa545faa8966ef4ce4d4155083ab5aaf1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#aa545faa8966ef4ce4d4155083ab5aaf1">setParameters</a> (const <a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a> &amp;parameters)</td></tr>
<tr class="separator:aa545faa8966ef4ce4d4155083ab5aaf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba2b20b96f8509c0083a10d0f5baf76f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#aba2b20b96f8509c0083a10d0f5baf76f">getParameters</a> ()</td></tr>
<tr class="separator:aba2b20b96f8509c0083a10d0f5baf76f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b35f7a228b1267c21a1adc519a64b9d"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a1b35f7a228b1267c21a1adc519a64b9d">run</a> ()</td></tr>
<tr class="separator:a1b35f7a228b1267c21a1adc519a64b9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-types"></a>
Private 类型</h2></td></tr>
<tr class="memitem:a46f448249a3fe379a8d40046b78a04ff"><td class="memItemLeft" align="right" valign="top"><a id="a46f448249a3fe379a8d40046b78a04ff"></a>
typedef boost::mt19937&#160;</td><td class="memItemRight" valign="bottom"><b>EngineType</b></td></tr>
<tr class="separator:a46f448249a3fe379a8d40046b78a04ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade3ed103585aef1a084b4c11edb1747c"><td class="memItemLeft" align="right" valign="top"><a id="ade3ed103585aef1a084b4c11edb1747c"></a>
typedef <a class="el" href="structpcl_1_1common_1_1uniform__distribution.html">uniform_distribution</a>&lt; T &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><b>DistributionType</b></td></tr>
<tr class="separator:ade3ed103585aef1a084b4c11edb1747c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ac723278419c4bff5695538ff4b3173d5"><td class="memItemLeft" align="right" valign="top"><a id="ac723278419c4bff5695538ff4b3173d5"></a>
<a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a></td></tr>
<tr class="memdesc:ac723278419c4bff5695538ff4b3173d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">parameters <br /></td></tr>
<tr class="separator:ac723278419c4bff5695538ff4b3173d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c79b7a78fb7c37fa01f3b3c1289f23b"><td class="memItemLeft" align="right" valign="top"><a id="a4c79b7a78fb7c37fa01f3b3c1289f23b"></a>
DistributionType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a></td></tr>
<tr class="memdesc:a4c79b7a78fb7c37fa01f3b3c1289f23b"><td class="mdescLeft">&#160;</td><td class="mdescRight">uniform distribution <br /></td></tr>
<tr class="separator:a4c79b7a78fb7c37fa01f3b3c1289f23b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a773d0b83e89058462ed2d074e1d90227"><td class="memItemLeft" align="right" valign="top"><a id="a773d0b83e89058462ed2d074e1d90227"></a>
EngineType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a></td></tr>
<tr class="memdesc:a773d0b83e89058462ed2d074e1d90227"><td class="mdescLeft">&#160;</td><td class="mdescRight">random number generator <br /></td></tr>
<tr class="separator:a773d0b83e89058462ed2d074e1d90227"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2928887064d744367e5d0f5513e4c8f"><td class="memItemLeft" align="right" valign="top"><a id="ab2928887064d744367e5d0f5513e4c8f"></a>
boost::variate_generator&lt; EngineType &amp;, DistributionType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">generator_</a></td></tr>
<tr class="memdesc:ab2928887064d744367e5d0f5513e4c8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">generator of random number from a uniform distribution <br /></td></tr>
<tr class="separator:ab2928887064d744367e5d0f5513e4c8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class pcl::common::UniformGenerator&lt; T &gt;</h3>

<p><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html" title="UniformGenerator class generates a random number from range [min, max] at each run picked according t...">UniformGenerator</a> class generates a random number from range [min, max] at each run picked according to a uniform distribution i.e eaach number within [min, max] has almost the same probability of being drawn. </p>
<dl class="section author"><dt>作者</dt><dd>Nizar Sallem </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a0c3dafe58c4ad4bab8458347f6f71ebf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c3dafe58c4ad4bab8458347f6f71ebf">&#9670;&nbsp;</a></span>UniformGenerator() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::<a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">UniformGenerator</a> </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>min</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>max</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pcl::uint32_t&#160;</td>
          <td class="paramname"><em>seed</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>included lower bound </td></tr>
    <tr><td class="paramname">max</td><td>included higher bound </td></tr>
    <tr><td class="paramname">seed</td><td>seeding value </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  : <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a> (min, max)</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  , <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">generator_</a> (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>) </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a> = Parameters (min, max, seed);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed != -1)</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>.seed (seed);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1common_1_1_uniform_generator_html_a4c79b7a78fb7c37fa01f3b3c1289f23b"><div class="ttname"><a href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">pcl::common::UniformGenerator::distribution_</a></div><div class="ttdeci">DistributionType distribution_</div><div class="ttdoc">uniform distribution</div><div class="ttdef"><b>Definition:</b> random.h:148</div></div>
<div class="ttc" id="aclasspcl_1_1common_1_1_uniform_generator_html_a773d0b83e89058462ed2d074e1d90227"><div class="ttname"><a href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">pcl::common::UniformGenerator::rng_</a></div><div class="ttdeci">EngineType rng_</div><div class="ttdoc">random number generator</div><div class="ttdef"><b>Definition:</b> random.h:150</div></div>
<div class="ttc" id="aclasspcl_1_1common_1_1_uniform_generator_html_ab2928887064d744367e5d0f5513e4c8f"><div class="ttname"><a href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">pcl::common::UniformGenerator::generator_</a></div><div class="ttdeci">boost::variate_generator&lt; EngineType &amp;, DistributionType &gt; generator_</div><div class="ttdoc">generator of random number from a uniform distribution</div><div class="ttdef"><b>Definition:</b> random.h:152</div></div>
<div class="ttc" id="aclasspcl_1_1common_1_1_uniform_generator_html_ac723278419c4bff5695538ff4b3173d5"><div class="ttname"><a href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">pcl::common::UniformGenerator::parameters_</a></div><div class="ttdeci">Parameters parameters_</div><div class="ttdoc">parameters</div><div class="ttdef"><b>Definition:</b> random.h:146</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a26c953dcbe05a16f55f8f5d7979c1bd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26c953dcbe05a16f55f8f5d7979c1bd9">&#9670;&nbsp;</a></span>UniformGenerator() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::<a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">UniformGenerator</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameters</td><td>uniform distribution parameters and generator seed </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  : <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a> (parameters)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  , <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a> (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.min, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.max)</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  , <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">generator_</a> (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>) </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed != -1)</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>.seed (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aba2b20b96f8509c0083a10d0f5baf76f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba2b20b96f8509c0083a10d0f5baf76f">&#9670;&nbsp;</a></span>getParameters()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a>&amp; <a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::getParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>uniform distribution parameters and generator seed </dd></dl>
<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a1b35f7a228b1267c21a1adc519a64b9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b35f7a228b1267c21a1adc519a64b9d">&#9670;&nbsp;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>a randomly generated number in the interval [min, max] </dd></dl>
<div class="fragment"><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">generator_</a> ()); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="aa545faa8966ef4ce4d4155083ab5aaf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa545faa8966ef4ce4d4155083ab5aaf1">&#9670;&nbsp;</a></span>setParameters() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::setParameters </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1common_1_1_uniform_generator_1_1_parameters.html">Parameters</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set generator parameters </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameters</td><td>uniform distribution parameters and generator seed </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;{</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a> = parameters;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#if BOOST_VERSION &gt;= 104700</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="keyword">typename</span> DistributionType::param_type params (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.min, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.max);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>.param (params);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a> = DistributionType (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.min, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.max);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>.reset ();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">generator_</a>.distribution () = <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="keywordflow">if</span> (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed != -1)</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>.seed (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a3963a7ac25388e77cdfab6641cc46b9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3963a7ac25388e77cdfab6641cc46b9c">&#9670;&nbsp;</a></span>setParameters() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::setParameters </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pcl::uint32_t&#160;</td>
          <td class="paramname"><em>seed</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the uniform number generator parameters </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">min</td><td>minimum allowed value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max</td><td>maximum allowed value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">seed</td><td>random number generator seed (applied if != -1) </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;{</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.min = min;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.max = max;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed = seed;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#if BOOST_VERSION &gt;= 104700</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <span class="keyword">typename</span> DistributionType::param_type params (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.min, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.max);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>.param (params);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a> = DistributionType (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.min, <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.max);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>.reset ();</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ab2928887064d744367e5d0f5513e4c8f">generator_</a>.distribution () = <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a4c79b7a78fb7c37fa01f3b3c1289f23b">distribution_</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  <span class="keywordflow">if</span> (seed != -1)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed = seed;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>.seed (<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a7aca98cd032cc02d5f180349b1bafa49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7aca98cd032cc02d5f180349b1bafa49">&#9670;&nbsp;</a></span>setSeed()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">pcl::common::UniformGenerator</a>&lt; T &gt;::setSeed </td>
          <td>(</td>
          <td class="paramtype">pcl::uint32_t&#160;</td>
          <td class="paramname"><em>seed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change seed value </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">seed</td><td>new generator seed value </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;{</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keywordflow">if</span> (seed != -1)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed = seed;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#a773d0b83e89058462ed2d074e1d90227">rng_</a>.seed(<a class="code" href="classpcl_1_1common_1_1_uniform_generator.html#ac723278419c4bff5695538ff4b3173d5">parameters_</a>.seed);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>common/include/pcl/common/<a class="el" href="random_8h_source.html">random.h</a></li>
<li>common/include/pcl/common/impl/<a class="el" href="random_8hpp_source.html">random.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>common</b></li><li class="navelem"><a class="el" href="classpcl_1_1common_1_1_uniform_generator.html">UniformGenerator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
